package net.dgg.dggcloud.service.jrcrm.entity.business;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 从新媒体调接口过来，但是出现异常的商机数据体
 * @ClassName: SourceBusiness
 * @Author: 朱永波
 * @Date: 2018年1月18日 11:14:16
 * @Version V1.0
 */

@Entity
@Table(name = "bus_source_business")
public class SourceBusiness extends BaseEntity{

    /**
     * 咨询编号，提交者产生的咨询编号
     */
    @Column(name = "consult_id")
    private String consultId;

    /**
     * 客户名
     */
    @Column(name = "customer_name")
    private String customerName;
    /**
     * 客户联系号码
     */
    @Column(name = "customer_phone")
    private String customerPhone;
    /**
     * 咨询类型代码
     */
    @Column(name = "business_type")
    private String businessType;
    /**
     * 地区代码
     */
    @Column(name = "place")
    private String place;
    /**
     * 资源所属代码
     */
    @Column(name = "web")
    private String web;
    /**
     * 咨询留言内容
     */
    @Column(name = "content")
    private String content;
    /**
     * 来源URL
     */
    @Column(name = "source_url")
    private String sourceUrl;
    /**
     * 异常原因
     */
    @Column(name = "error_msg")
    private String errorMsg;
    /**
     * 处理人id
     */
    @Column(name = "handle_user_id")
    private Long handleUserId;
    /**
     * 处理人名称
     */
    @Column(name = "handle_user")
    private String handleUser;
    /**
     * 处理结果
     */
    @Column(name = "result")
    private String result;

    /**
     * 号码备份
     */
    @Column(name = "customer_phone_bak")
    private String customerPhoneBak;

    /**
     * 状态，0未处理，1已处理
     */
    @Column(name = "status")
    private int status;


    public String getConsultId() {
        return consultId;
    }

    public void setConsultId(String consultId) {
        this.consultId = consultId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getWeb() {
        return web;
    }

    public void setWeb(String web) {
        this.web = web;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Long getHandleUserId() {
        return handleUserId;
    }

    public void setHandleUserId(Long handleUserId) {
        this.handleUserId = handleUserId;
    }

    public String getHandleUser() {
        return handleUser;
    }

    public void setHandleUser(String handleUser) {
        this.handleUser = handleUser;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCustomerPhoneBak1() {
        return customerPhoneBak;
    }

    public void setCustomerPhoneBak(String customerPhoneBak) {
        this.customerPhoneBak = "";//customerPhoneBak;
    }
}
